nize all eventsꞌ)   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
dl 0
loc 11
rs 9.85
c 1
b 0
f 0
nc 1
nop 0
1
var jsondash = require('../flask_jsondash/static/js/app');
2
3
describe('dashEvents', function(){
4
    it('Should recognize all events', function(){
5
        function testEvent(name) {
6
            $('body').on(name, function(e){
0 ignored issues
show
Unused Code introduced by
The parameter e is not used and could be removed.

This check looks for parameters in functions that are not used in the function body and are not followed by other parameters which are used inside the function.

Loading history...
7
                console.log('Event ran: ' + name);
0 ignored issues
show
Debugging Code introduced by
console.log looks like debug code. Are you sure you do not want to remove it?
Loading history...
8
            });
9
        }
10
        $.each(EVENTS, function(k, name){
0 ignored issues
show
Bug introduced by
The variable EVENTS seems to be never declared. If this is a global, consider adding a /** global: EVENTS */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
11
            testEvent(name);
12
        });
13
        // expect(jsondash.util.scaleStr('50%', '50%')).toBe('scale(50%,50%)');
14
    });
15
});
16